
package com.way.filemanager.util;

import com.way.filemanager.model.FileSystemObject;

public class FileInfo {
    public FileInfo(FileSystemObject m, int type) {
        mFileObj = m;
        mType = type;
        mSelected = false;
    }

    public FileSystemObject mFileObj;

    public int mType;

    public boolean mSelected;

    public FileSystemObject GetFileSystemObject() {
        return mFileObj;
    }

    public String GetFileName() {
        return mFileObj.getName();
    }

    public String GetFullPath() {
        return mFileObj.getFullPath();
    }

    public String GetFilePath() {
        return mFileObj.getParent();
    }

    public long GetModifyTime() {
        return mFileObj.getLastModifiedTime().getTime();
    }

    public long GetFileSize() {
        return mFileObj.getSize();
    }

    public boolean GetFileSelect() {
        return mSelected;
    }

    public void SetFileSelect(boolean sel) {
        mSelected = sel;
    }
}
